package cn.yunhe.dao;

import cn.yunhe.model.House;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/*spring注解*/
@Repository(value = "houseDao")
public interface HouseDao {
    /**
     * 总记录数
     * @param objectMap
     * @return
     */
    Integer getTotalRecords(Map<String, Object> objectMap);

    /**
     * 多条件查询的结果集:房屋信息列表
     * @param objectMap
     * @return
     */
    List<House> searchByConditions(Map<String, Object> objectMap);

}
